#ifndef DATASVIEWER_H
#define DATASVIEWER_H

#include "ui_datasWHViewer.h"
#include <QSqlDatabase>
#include <QSqlTableModel>
#include <QObject>


class DatasViewer:public QWidget, public Ui::DatasWHViewer
{
	Q_OBJECT
	public:
	    DatasViewer (QObject * parent = 0,const QString uuid = QString());
	    virtual ~DatasViewer ();
	    QSqlDatabase m_db;
	    void showDatas();
	protected slots:
	    void addRowOfDatas();
	    void deleteRowOfDatas();
	    void applyAndSubmit();
	    int WHTableLastId();
	private:
	    void showView(QSqlTableModel * model);
	    QString m_uuid;	    
	    QSqlTableModel * m_model;		
};

#endif

